package exe3;

/**
 * @author oldliu
 * @since 1.0
 */
//员工类
public class Staff {
    int id;//工号
    String name;//姓名
    String sex;//性别
    String post;//职务
    double money;//薪水
    String number;//身份证号
    int years;//工作年限
    public Staff(){

    }

    public Staff(int id, String name, String sex, String post, double money, String number, int years) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.post = post;
        this.money = money;
        this.number = number;
        this.years = years;
    }

    public void show(){
        System.out.println(id+",姓名："+name+",薪水："+money+",年限："+years);
    }
}
